// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 7;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The cave passage starts to slope sharply upward to the north. As you climb, the air rapidly grows colder. Occasionally, a draft of fresh air starts to reach you. It is icy and flecked with bits of snow.";
	text2 = "You must be close to a new exit to the underworld, one high up in the Rokaj.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "Now that the drakes are dead, you search for their treasure. You find nothing. Their lairs and hoards must be safely hidden far away.";
	text2 = "At least the passage to the surface is open. Or more open than it was before.";
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a pack of huge, blue drakes curled up between these stone pillars. When you get close, they resentfully rise from their slumber. They turn toward you and let out long warning hisses.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach.";
	text1 = "When you get close, their sharp eyes inspect you. In particular, they see the insignia of royalty on your shoulder. They look at each other nervously. It's always fascinating to see such mighty creatures look sheepish.";
	text2 = "Finally, one of them steps forward to meet you. _Ahhhssss ... Intruder. Sssspy of Haven. You musssst ssstop here._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Turn back.";
	text1 = "This situation seems like nothing but trouble. You return to the underworld. They return to sleep.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Do you know who I am?_";
	text1 = "_Yesss. Alassss._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Where does this road go?_";
	text1 = "_To the high cold peaksss of the Rokaj._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_Why are you stopping me?_";
	text1 = "_We were paid. A mighty bounty to sssecure thissss passsssage. None may passss._";

begintalknode;
	state = 12;
	nextstate = 11;
	condition = 1;
	question = "_Who paid you?_";
	text1 = "_Humanssss. They say they came from one called the Wolf, whoever that issss. They were sssstrange, but the gold wasss real._";

begintalknode;
	state = 11;
	nextstate = 13;
	condition = 1;
	question = "_I'm afraid that I need to pass here._";
	text1 = "The drakes look at each other. There is a brief, whispered conversation. Then one says, _We are paid. We mussst guard the road._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll turn back then. Sorry to bother you._";
	text1 = "The drakes watch you go. They are entirely relieved.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_You think you can defeat a [P] of Haven?_";
	text1 = "_We are not sssure. We regret the choicesss that force usss to try._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = coins_amount() >= 500;
	question = "_You are paid? I can pay more._ Give 500 coins.";
	text1 = "The chance to be paid twice for no work has incredible appeal to their greedy reptilian brains. You count out the coins, they split them up, and then they flee to the north.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		change_coins(-500,1);
		violence(-3);
	break;
		
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(80,6) < 106;
	question = "_I am a mighty warrior. If you don't step aside, I will make sure your punishment is slow and painful._";
	text1 = "Another whispered conversation. _We have heard your reputation. It is one of peace and mercy. We think you will just turn back._";

		
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(80,6) >= 106;
	question = "_I am a brutal warrior. If you don't step aside, I will make sure your punishment is slow and painful._";
	text1 = "Another whispered conversation. _We have heard your reputation. It is one of peace and mercy. We will let you by. They flee to the north._";
	action = END_TALK;
	code =

			cancel_out_fight(1,1);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_I will not fight you. Today._";
	text1 = "You turn and leave. The drakes watch you go. They are entirely relieved.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_You have forced me to fight you._ Attack.";
	text1 = "_We should have never trusssted the humanssss. They have brought ruin to usss!_ The drakes rear up, roar, and charge you.";
	action = END_TALK;
	code =
		set_out_fight_field(9);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				